package com.cros.pruebas2;

public class TestsString {
	public static void main(String argv[]){
		String s = "Fred";
		String t = s; // Now t and s refer to the same
		// String object
		t.toUpperCase(); // Invoke a String
	}

}

class StringTest {
	public static void main(String [] args) {
		String x = "Java"; // Assign a value to x
		String y = x; // Now y and x refer to the same
		// String object
		System.out.println("y string = " + y);
		x = x + " Bean"; // Now modify the object using
		// the x reference
		System.out.println("y string = " + y);
	}
}
